<template>
    <el-button type="primary" @click="onClick">点击我</el-button>
</template>
<script setup>
import { ref, onMounted, } from 'vue';
const count = ref(0);
const onClick = (() => {
    count.value++;
});
</script>